import styled from 'styled-components'

const MyOrderDetail = styled.div`
  background-color: #f7f7f7;
  min-height: 100vh;

  .order-detail {
    .progress-bar {
      background: linear-gradient(90deg, rgb(84, 179, 135), rgb(79, 169, 162));
      padding: 16px 8px;

      .line-bg {
        height: 7px;
        padding: 2px;
        background-color: white;
        border-radius: 5px;
        position: relative;

        .line-fill {
          height: 6px;
          background: linear-gradient(
            90deg,
            rgb(84, 179, 135),
            rgb(79, 169, 162)
          );
          border-radius: 5px;
          transition: width 0.3s;
        }
      }

      .step-list {
        display: flex;
        justify-content: space-between;
        margin-top: 8px;

        .step-item {
          text-align: center;
          flex: 1;

          .circle {
            width: 20px;
            height: 20px;
            margin: 0 auto;
            border-radius: 50%;
            background: #d8d8d8;
            color: #4fc3b3;
            line-height: 20px;
            font-size: 12px;
          }

          .label {
            margin-top: 4px;
            font-size: 12px;
            color: #93dfd5ff;
          }

          &.active .circle {
            background: white;
          }

          &.active .label {
            color: white;
          }
        }
      }
    }

    .pay-box {
      background-color: #fff;
      border-radius: 12px;
      padding: 20px;
      margin: 16px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
      text-align: center;

      .pay-title {
        font-size: 18px;
        font-weight: 600;
        color: #333;
        margin-bottom: 12px;
      }

      .pay-amount {
        font-size: 26px;
        font-weight: bold;
        color: #ff4d4f;
        margin-bottom: 12px;
      }

      .pay-countdown {
        font-size: 14px;
        color: #999;
        margin-bottom: 20px;
      }

      .pay-btn {
        display: inline-block;
        width: 80%;
        background: linear-gradient(135deg, #00b578, #07c160);
        color: #fff;
        font-size: 16px;
        font-weight: 500;
        padding: 10px 0;
        border-radius: 24px;
        transition: all 0.3s;
        box-shadow: 0 2px 6px rgba(0, 181, 120, 0.3);
        cursor: pointer;

        &:hover {
          background: linear-gradient(135deg, #07c160, #13d19f);
          box-shadow: 0 3px 10px rgba(0, 181, 120, 0.4);
        }

        &:active {
          transform: scale(0.97);
        }
      }
    }

    .status-box {
      background-color: #fff;
      text-align: center;
      padding: 16px 8px;

      .status-title {
        color: #333;
        font-weight: 500;
        margin-bottom: 4px;
      }

      .status-sub {
        color: #999;
        font-size: 13px;
      }
    }

    .card {
      background-color: #fff;
      margin: 12px;
      border-radius: 8px;
      padding: 12px;

      .section-title {
        font-weight: 600;
        border-left: 3px solid #f44336;
        padding-left: 6px;
        margin-bottom: 8px;
      }

      .info-item {
        display: flex;
        justify-content: space-between;
        padding: 8px 0;
        font-size: 14px;
        border-bottom: 1px solid #f0f0f0;

        &:last-child {
          border-bottom: none;
        }

        .link {
          color: #1677ff;
        }
      }
    }
  }
`

export default MyOrderDetail
